//
//  UserInfoModel.h
//  GSCalendar
//
//  Created by guoshikeji_a on 2018/9/7.
//  Copyright © 2018年 tanyin. All rights reserved.
//

#import <Foundation/Foundation.h>

//婚姻状况 1 未婚 2 已婚
typedef NS_ENUM(NSInteger,UserInfoMarriageType) {
    UserInfoMarriageTypeMarried = 2,//已婚
    UserInfoMarriageTypeUnmarried = 1//未婚
};
//生日类型 1 阳历 2 阴历
typedef NS_ENUM(NSInteger,UserInfoBirthdayType) {
    UserInfoBirthdayTypeGregorian = 1,
    UserInfoBirthdayTypeLunar = 2,
};

@interface UserInfoModel : NSObject

/**
 *sub same as user_id
 */
@property (nonatomic, copy) NSString *sub;

/**
 *nickname 用户昵称
 */
@property (nonatomic, copy) NSString *nickname;
/**
 *head_img 用户头像
 */
@property (nonatomic, copy) NSString *head_img;
/**
 *sex 性别 1 男 2 女
 */
@property (nonatomic, assign) NSInteger sex;
/**
 *username
 */
@property (nonatomic, copy) NSString *username;
/**
 *email
 */
@property (nonatomic, copy) NSString *email;
/**
 *phone
 */
@property (nonatomic, copy) NSString *phone;
/**
 *birthday
 */
@property (nonatomic, copy) NSString *birthday;

/**
 *birthday_type
 */
@property (nonatomic, assign) UserInfoBirthdayType birthday_type;

/**
 *iat 创建时间
 */
@property (nonatomic, assign) NSTimeInterval iat;
/**
 *nbf 允许使用时间
 */
@property (nonatomic, assign) NSTimeInterval nbf;
/**
 *exp 过期时间 这个时间如果过了就会出现jwt 过期 如果用户一直在使用 需要更新jwt
 */
@property (nonatomic, assign) NSTimeInterval exp;
/**
 *token
 */
@property (nonatomic, copy) NSString *token;
/**
 *status 状态 1 可用 2 禁用
 */
@property (nonatomic, assign) NSInteger status;

/**
 *marriage
 */
@property (nonatomic, assign) UserInfoMarriageType marriage;

/**
 *real_name
 */
@property (nonatomic, copy) NSString *real_name;

/**
 *income s年收入
 */
@property (nonatomic, copy) NSString *income;

@end
